package com.mryx.demo.service.serviceImpl;

import com.mryx.demo.mapper.OrderMapper;
import com.mryx.demo.pojo.Cart;
import com.mryx.demo.pojo.Details;
import com.mryx.demo.pojo.Order;
import com.mryx.demo.pojo.Picture;
import com.mryx.demo.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OrderServiceImpl  implements OrderService {

    @Resource
    private OrderMapper orderMapper;

    @Override
    public int InOrder(Order order) {
        return orderMapper.InOrder(order);
    }

    @Override
    public int InDetas(Details details) {
        return orderMapper.InDetas(details);
    }

    @Override
    public List<Picture> picture(String ordernum) {
        return orderMapper.picture(ordernum);
    }

    @Override
    public List<Order> showAll(int uid) {
        return orderMapper.showAll(uid);
    }

    @Override
    public List<Order> showByClass(int uid, int state) {

        return orderMapper.showByClass(uid,state);
    }

    @Override
    public int Update(Order order) {
        return orderMapper.Update(order);
    }

    @Override
    public Double ComPrice(int cid) {
        return orderMapper.ComPrice(cid);
    }

    @Override
    public String Compicture(int cid) {
        return orderMapper.Compicture(cid);
    }

    @Override
    public String DelCart(Cart cart) {
        return orderMapper.DelCart(cart);
    }
}
